package twu.shubham.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: nikku
 * Date: 8/13/13
 * Time: 8:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class membersrecord {

    public int slno ;
    public int librarynumber;
    public int password;
    public String username;
    public String phone;
    public String email;

    public int setValues(int i,int ln,String name, int pass, String ph, String em) {

        if(i>0)
        {
            slno =i;
            librarynumber=ln;
            username=name;
            password=pass;
            phone=ph;
            email=em;
            return 1;
        }
        return 0;
    }

    public int printDetail()
    {
        if(slno>0)
        {
        System.out.println(username + "\t" + email+"\t"+phone);
        return 1;
        }
        return 0;
    }
}
